//
//  UIFont++.swift
//  Example
//
//  Created by S JZ on 2024/1/30.
//


import UIKit

@objc public extension UIFont {
    @objc public class func font(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size)
    }
    
    @objc public class func medium(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .medium)
    }
    
    @objc public class func semibold(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .semibold)
    }
    
    @objc public class func bold(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .bold)
    }
    
    @objc public class func heavy(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .heavy)
    }
    
    @objc public class func black(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .black)
    }
    
    @objc public class func light(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .light)
    }
    
    @objc public class func thin(_ size: CGFloat) -> UIFont {
        systemFont(ofSize: size, weight: .thin)
    }
}

